home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Games / PC-SIG World of Games (CDRM1080710) (1993).iso / SWMAG / DISK1382.ZIP / DOC.BAT < prev    next >
DOS Batch File  |  1989-08-01  |  1KB  |  45 lines

  1. echo off
  2. rem DOC.BAT - Batch for for the printing of b_CRYPT.DOC file.
  3. cls
  4. echo  
  5. echo DOC.BAT (tm) b_CRYPT (tm) Documentation Printing Batch File.
  6. echo  
  7. echo (C) Copr 1988-89, Stephen B. Hajducek.  All rights reserved.
  8. echo  
  9. echo  
  10. echo Check your printer attached to [%1] at this point before continuing,
  11. echo  
  12. echo if nothing appears between the brackets [ ] above, press control break
  13. echo  
  14. echo and enter printer device as prn or lpt1: or com1: etc on command line.
  15. echo  
  16. pause
  17. cls
  18. echo Now printing files...
  19. if %1==prn goto start
  20. if %1==lpt1: goto start
  21. if %1==lpt2: goto start
  22. if %1==lpt3: goto start
  23. if %1==com1: goto start
  24. if %1==com2: goto start
  25. if %1==com3: goto start
  26. goto error
  27. :start
  28. echo 18>%1
  29. type b_crypt.doc>%1
  30. echo  > %2:
  31. cls
  32. echo  
  33. echo All files have been sent to printer...
  34. goto end
  35. :error
  36. echo  ERROR: Incorrect command line parameters.
  37. echo  
  38. echo  At command line enter device for printing files in lower case:
  39. echo  
  40. echo  Example - compdoc prn:   'For default LPT1 printer.
  41. echo            compdoc lpt2:  'For LPT2 parallel printer.
  42. echo            compdoc com1:  'For COM1 attached serial printer.
  43. :end
  44. echo on
  45.